// pages/index2.js
Page({
  data: {
    name: '长江二桥',
    imgUrl: '../../static/images/cjeq.jpg',
    items: [
      {name: 'a', value: '1'},
      {name: 'b', value: '2'},
      {name: 'c', value: '3'}
    ],
    array: ['美国', '中国', '巴西', '日本'],
  },
  click(e) {
    console.log(e.target.dataset);
    this.setData({
      name: '熠熠生辉'
    })
  },
  input(e) {
    console.log(e.detail.value);
    this.setData({
      name: e.detail.value
    })
  },
})